clipboard: Allow claiming the clipboard to fail
authorBenjamin Otte <otte@redhat.com>
Fri, 24 Nov 2017 19:42:40 +0000 (20:42 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 3 Dec 2017 04:46:47 +0000 (05:46 +0100)
commit8e132ef0c421b43c9a91551c6833a549aebe2b3c
treef46f23fa705448bd6b52a7aef02a9195817c41cd
parent7426f1a16b7cbc14cbc453852f883a20d2575000
clipboard: Allow claiming the clipboard to fail

Also make clipboard_claim() a vfunc so backends can override it.

Because the whole operation a vfunc, backends have the option of adding
code before the actual claim is done and potentially even fail or do
something after the successful claim.
gdk/gdkclipboard.c
gdk/gdkclipboard.h
gdk/gdkclipboardprivate.h